"use strict";
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
    function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
    var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
    var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
    var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
    var _, done = false;
    for (var i = decorators.length - 1; i >= 0; i--) {
        var context = {};
        for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
        for (var p in contextIn.access) context.access[p] = contextIn.access[p];
        context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
        var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
        if (kind === "accessor") {
            if (result === void 0) continue;
            if (result === null || typeof result !== "object") throw new TypeError("Object expected");
            if (_ = accept(result.get)) descriptor.get = _;
            if (_ = accept(result.set)) descriptor.set = _;
            if (_ = accept(result.init)) initializers.unshift(_);
        }
        else if (_ = accept(result)) {
            if (kind === "field") initializers.unshift(_);
            else descriptor[key] = _;
        }
    }
    if (target) Object.defineProperty(target, contextIn.name, descriptor);
    done = true;
};
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
    var useValue = arguments.length > 2;
    for (var i = 0; i < initializers.length; i++) {
        value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
    }
    return useValue ? value : void 0;
};
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
    if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
    return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReducibleTimeType = void 0;
var graphql_1 = require("@nestjs/graphql");
var OrderTimeType = function () {
    var _classDecorators = [(0, graphql_1.ObjectType)()];
    var _classDescriptor;
    var _classExtraInitializers = [];
    var _classThis;
    var _startTime_decorators;
    var _startTime_initializers = [];
    var _startTime_extraInitializers = [];
    var _endTime_decorators;
    var _endTime_initializers = [];
    var _endTime_extraInitializers = [];
    var _key_decorators;
    var _key_initializers = [];
    var _key_extraInitializers = [];
    var OrderTimeType = _classThis = /** @class */ (function () {
        function OrderTimeType_1() {
            this.startTime = __runInitializers(this, _startTime_initializers, void 0);
            this.endTime = (__runInitializers(this, _startTime_extraInitializers), __runInitializers(this, _endTime_initializers, void 0));
            this.key = (__runInitializers(this, _endTime_extraInitializers), __runInitializers(this, _key_initializers, void 0));
            __runInitializers(this, _key_extraInitializers);
        }
        return OrderTimeType_1;
    }());
    __setFunctionName(_classThis, "OrderTimeType");
    (function () {
        var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
        _startTime_decorators = [(0, graphql_1.Field)({
                description: '开始时间',
            })];
        _endTime_decorators = [(0, graphql_1.Field)({
                description: '结束时间',
            })];
        _key_decorators = [(0, graphql_1.Field)({
                description: 'key',
            })];
        __esDecorate(null, null, _startTime_decorators, { kind: "field", name: "startTime", static: false, private: false, access: { has: function (obj) { return "startTime" in obj; }, get: function (obj) { return obj.startTime; }, set: function (obj, value) { obj.startTime = value; } }, metadata: _metadata }, _startTime_initializers, _startTime_extraInitializers);
        __esDecorate(null, null, _endTime_decorators, { kind: "field", name: "endTime", static: false, private: false, access: { has: function (obj) { return "endTime" in obj; }, get: function (obj) { return obj.endTime; }, set: function (obj, value) { obj.endTime = value; } }, metadata: _metadata }, _endTime_initializers, _endTime_extraInitializers);
        __esDecorate(null, null, _key_decorators, { kind: "field", name: "key", static: false, private: false, access: { has: function (obj) { return "key" in obj; }, get: function (obj) { return obj.key; }, set: function (obj, value) { obj.key = value; } }, metadata: _metadata }, _key_initializers, _key_extraInitializers);
        __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
        OrderTimeType = _classThis = _classDescriptor.value;
        if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
        __runInitializers(_classThis, _classExtraInitializers);
    })();
    return OrderTimeType = _classThis;
}();
var ReducibleTimeType = function () {
    var _classDecorators = [(0, graphql_1.ObjectType)()];
    var _classDescriptor;
    var _classExtraInitializers = [];
    var _classThis;
    var _week_decorators;
    var _week_initializers = [];
    var _week_extraInitializers = [];
    var _orderTime_decorators;
    var _orderTime_initializers = [];
    var _orderTime_extraInitializers = [];
    var ReducibleTimeType = _classThis = /** @class */ (function () {
        function ReducibleTimeType_1() {
            this.week = __runInitializers(this, _week_initializers, void 0);
            this.orderTime = (__runInitializers(this, _week_extraInitializers), __runInitializers(this, _orderTime_initializers, void 0));
            __runInitializers(this, _orderTime_extraInitializers);
        }
        return ReducibleTimeType_1;
    }());
    __setFunctionName(_classThis, "ReducibleTimeType");
    (function () {
        var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
        _week_decorators = [(0, graphql_1.Field)({
                description: '周几',
            })];
        _orderTime_decorators = [(0, graphql_1.Field)(function () { return [OrderTimeType]; }, {
                description: '可约时间 json',
            })];
        __esDecorate(null, null, _week_decorators, { kind: "field", name: "week", static: false, private: false, access: { has: function (obj) { return "week" in obj; }, get: function (obj) { return obj.week; }, set: function (obj, value) { obj.week = value; } }, metadata: _metadata }, _week_initializers, _week_extraInitializers);
        __esDecorate(null, null, _orderTime_decorators, { kind: "field", name: "orderTime", static: false, private: false, access: { has: function (obj) { return "orderTime" in obj; }, get: function (obj) { return obj.orderTime; }, set: function (obj, value) { obj.orderTime = value; } }, metadata: _metadata }, _orderTime_initializers, _orderTime_extraInitializers);
        __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
        ReducibleTimeType = _classThis = _classDescriptor.value;
        if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
        __runInitializers(_classThis, _classExtraInitializers);
    })();
    return ReducibleTimeType = _classThis;
}();
exports.ReducibleTimeType = ReducibleTimeType;
